package com.zhongfl.crm.enums.boss;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


/**
 * 工单状态
 */
public enum WorkOrderStatus implements Serializable {

    UN_ASSIGNEE("待分配",1),
    ASSIGNED("已分配",2),
    COMPLETED("已完成",3),
    SETTLED("已结算",4),
    BACKED("已返库",5),
    CANCEL("已取消",6),
    OTHER("默认",0);

    @Setter
    @Getter
    private String key;

    @Getter
    @Setter
    private int index;

    @Setter
    @Getter
    private String value;

    WorkOrderStatus(String key, int index) {
        this.key = key;
        this.index = index;
    }

    WorkOrderStatus(String key, String value) {
        this.key = key;
        this.value = value;
    }


    public String getKey() {
        return key;
    }

}
